<template>
	<view style="position: relative;">
		<image class="img" src="./1001icon2.png" mode="widthFix"></image>
		<image class="img1" src="./1001icon1.png" mode="widthFix">
			<view class="wode" @tap="wode"></view>
		</image>
		<view class="backBtn" @tap="backBtn"></view>
		<view class="backBtn1" @tap="backBtn1"></view>
	</view>
</template>

<script>
	const http = require('../../../utils/http.js');
	export default {
		data() {
			return {
				
			}
		},
		onLoad(options) {
			var that=this
			if(options.id){
				this.id=options.id
			}else{
				http.get('/api/balance/getBalance').then(res => {
					//console.log(res)
					if (res.code == 200 && res.result) {
						for(var i=0;i<res.result.length;i++){
							if(res.result[i].bankType=='1001'){
								that.id=res.result[i].id
							}
						}
					}
				})
			}
			
		},
		onShow() {
			
		},
		methods: {
			backBtn:function(){
				uni.navigateBack({
					delta: 1
				})
			},
			backBtn1:function(){
				uni.navigateTo({
				    url: '1001-1?id='+this.id
				});
			},
			wode:function(){
				uni.switchTab({
					url: '/pages/user/user'
				});
			}
		}
	}
</script>

<style>
	.backBtn{
		width: 10vw;
		height: 10vw;
		position: absolute;
		top: 9vw;
		left: 4vw;
	}
	.backBtn1{
		width: 16vw;
		height: 16vw;
		position: absolute;
		top: 25vw;
		left: 76vw;
	}
	.wode{
		width: 12vw;
		height: 12vw;
		position: fixed;
		bottom: 1vw;
		right: 6vw;
	}
	.img{
		width: 100%;
	}
	.img1{
		width: 100%;
		position: fixed;
		bottom: 0;
		left: 0;
	}
</style>
